package com.tust.bean;

public class Student {
    private int sid; // 学号
    private String sname; // 姓名
    private int sage; // 年龄
    private String sphone; // 手机号
    private int isDelete; // 是否删除 0未删除 1删除

    // 构造方法
    public Student() {
    }
    // 构造方法重载
    public Student(int sid, String sname) {
        this.sid = sid;
        this.sname = sname;
    }
    // 构造方法重载
    public Student(int sid, String sname, int sage) {
        this.sid = sid;
        this.sname = sname;
        this.sage = sage;
    }

    // 构造方法重载
    public Student(int sid, String sname, int sage, String phone) {
        this.sid = sid;
        this.sname = sname;
        this.sage = sage;
        this.sphone = phone;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public int getSage() {
        return sage;
    }

    public void setSage(int sage) {
        this.sage = sage;
    }

    public String getSphone() {
        return sphone;
    }

    public void setSphone(String phone) {
        this.sphone = phone;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", sage=" + sage +
                ", phone='" + sphone + '\'' +
                '}';
    }
}
